package org.jeecg.modules.iot.devices.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.common.util.DateUtils;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 设备管理
 * @Author: jeecg-boot
 * @Date:   2021-11-18
 * @Version: V1.0
 */
@Data
@TableName("iot_devices")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="iot_devices对象", description="设备管理")
public class Devices implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**设备编号*/
	@Excel(name = "设备编号", width = 15)
    @ApiModelProperty(value = "设备编号")
    private String devSn;
	/**设备名称*/
	@Excel(name = "设备名称", width = 15)
    @ApiModelProperty(value = "设备名称")
    private String devName;
	/**设备类型*/
	@Excel(name = "设备类型", width = 15, dicCode = "dev_type")
	@Dict(dicCode = "dev_type")
    @ApiModelProperty(value = "设备类型")
    private Integer devType;
	/**安装地址*/
	@Excel(name = "安装地址", width = 15)
    @ApiModelProperty(value = "安装地址")
    private String devAddress;
	/**详细地址*/
	@Excel(name = "详细地址", width = 15)
    @ApiModelProperty(value = "详细地址")
    private String devAddressDetail;
	/**设备坐标*/
	@Excel(name = "设备坐标", width = 15)
    @ApiModelProperty(value = "设备坐标")
    private String devLocation;
	/**维护人*/
	@Excel(name = "维护人", width = 15)
    @ApiModelProperty(value = "维护人")
    private String devLinkman;
	/**维护人电话*/
	@Excel(name = "维护人电话", width = 15)
    @ApiModelProperty(value = "维护人电话")
    private String devLinkmanTel;
	/**设备IP*/
	@Excel(name = "设备IP", width = 15)
    @ApiModelProperty(value = "设备IP")
    private String devIp;
	/**设备账号密码*/
	@Excel(name = "设备账号密码", width = 15)
    @ApiModelProperty(value = "设备账号密码")
    private String devUser;
	/**状态*/
	@Excel(name = "状态", width = 15, dicCode = "use_status")
	@Dict(dicCode = "use_status")
    @ApiModelProperty(value = "状态")
    private Integer devStatus;
    /**设备归属单位*/
    @Excel(name = "设备归属单位", width = 15)
    @ApiModelProperty(value = "设备归属单位")
    private String devOwner;
    /**方向*/
    @Excel(name = "方向", width = 15)
    @ApiModelProperty(value = "方向")
    private String devDirection;
    /**心跳间隔*/
    @ApiModelProperty(value = "心跳间隔")
    private Integer heartBeat;
    /**心跳数据*/
    @Excel(name = "心跳数据", width = 15)
    @ApiModelProperty(value = "心跳数据")
    private String heartData;
    /**最新心跳时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "最新心跳时间")
    private Date heartTime;
    /**备注*/
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remarks;
    @ApiModelProperty(value = "在线状态")
    private Integer heartStatus;

}
